package com.qk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.dto.BusinessDto;
import com.qk.dto.BusinessPoolDto;
import com.qk.entity.Business;
import com.qk.vo.OverviewVo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BusinessMapper extends BaseMapper<Business> {
    /**
     * 商机列表查询
     */
    Page<Business> listBusiness(Page<Business> businessPage, BusinessDto businessDto);

    /**
     * 商机详情查询
     */
    Business getBusinessById(Integer id);

    /**
     * 商机总览
     */
    OverviewVo getBusinessOverview();

    /**
     * 商机池查询
     */
    Page<Business> getBusinessesPool(Page<Business> businessPage, BusinessPoolDto businessPoolDto);
}
